package com.petdog.infrastructure.entity;

import java.time.LocalDateTime;

/**
 * 用户-社区关系实体类
 */
public class UserCommunity {
    private Long id;                 // 主键ID
    private Long userId;             // 用户ID
    private Long communityId;        // 社区ID
    private Integer role;            // 用户在社区中的角色：1-普通成员，2-管理员，3-创建者
    private Integer status;          // 状态：1-正常，2-已退出，3-被踢出
    private LocalDateTime joinTime;  // 加入时间
    private LocalDateTime updateTime;// 更新时间
    private LocalDateTime lastActiveTime; // 最后活跃时间

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getCommunityId() {
        return communityId;
    }

    public void setCommunityId(Long communityId) {
        this.communityId = communityId;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public LocalDateTime getJoinTime() {
        return joinTime;
    }

    public void setJoinTime(LocalDateTime joinTime) {
        this.joinTime = joinTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
    
    public Integer getStatus() {
        return status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    
    public LocalDateTime getLastActiveTime() {
        return lastActiveTime;
    }
    
    public void setLastActiveTime(LocalDateTime lastActiveTime) {
        this.lastActiveTime = lastActiveTime;
    }
}
